package com.hongyue.dey06;

import java.io.FileReader;
import java.io.FileWriter;
import java.io.IOException;

public class Demo {
    public static void main(String[] args) throws IOException {
        FileWriter fw = new FileWriter("dey11\\src\\com\\hongyue\\dey06\\aaa.txt");
        FileReader fr = new FileReader("dey11\\src\\com\\hongyue\\dey05\\aaa.txt");
        char[] chars = new char[1024];
        for (int i; (i = fr.read(chars)) != -1; ) {
            fw.write(chars, 0, i);
            fw.flush();
        }
        fw.close();
        fr.close();
    }
}
